home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_gen_dynalight.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  60 lines

  1. # Jones 3D Cog Script
  2. #
  3. # TEM_DynaLight.cog
  4. #
  5. # Attatch up to 4 things to create dynamic light at those positions.
  6. #
  7. # [TRM]
  8. #
  9. # 10/21/98 RT: Added radius
  10. #
  11. # (C) 1998 LucasArts Entertainment Company LLC. All Rights Reserved
  12. #
  13. # ========================================================================================
  14.  
  15. symbols
  16.  
  17.     message     startup
  18.  
  19.     thing       thing0
  20.     thing       thing1
  21.     thing       thing2
  22.     thing       thing3
  23.  
  24.     flex        rval=1
  25.     flex        gval=1
  26.     flex        bval=1
  27.     flex        radius=1.0
  28.     flex        speed=1.0
  29.  
  30.     vector      color           local
  31.  
  32.     int         numThings=4     local
  33.     int         index           local
  34.              
  35. end
  36.  
  37. # ========================================================================================
  38.  
  39. code
  40.  
  41. startup:
  42.  
  43.     Sleep(5.0); #remove this later
  44.     
  45.     color = VectorSet(rval, gval, bval);
  46.     
  47.     for (index = 0; index <= numThings; index = index + 1)
  48.         {
  49.             if (thing0[index] > -1)
  50.             {
  51.                 SetThingLight(thing0[index], color, radius, speed);
  52.             }                
  53.         }
  54.     
  55.     return;
  56.            
  57. # ========================================================================================
  58.  
  59. end
  60.